package com.ruoyi.api.client.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 文章视图对象
 * @Author zouhuu
 * @Date 2022/8/6 22:04
 */
@Data
public class CmsArticleVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty(value = "ID")
    private Long id;

    /** 分类ID */
    @ApiModelProperty(value = "分类ID")
    private Long categoryId;

    /** 标题 */
    @ApiModelProperty(value = "标题")
    private String articleTitle;

    /** 封面图 */
    @ApiModelProperty(value = "封面图")
    private String articleImg;

    /** 关键字 */
    @ApiModelProperty(value = "关键字")
    private String articleKeyword;

    /** 简介 */
    @ApiModelProperty(value = "简介")
    private String articleBrief;

    /** 点击次数 */
    @ApiModelProperty(value = "点击次数")
    private Integer articleHit;

    /** 详情 */
    @ApiModelProperty(value = "详情")
    private String articleDetail;

    /** 来源 */
    @ApiModelProperty(value = "来源")
    private String articleFrom;

    /** 作者 */
    @ApiModelProperty(value = "作者")
    private String articleAuthor;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    /** 分类名称 */
    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    /** 排序 */
    @ApiModelProperty(value = "排序")
    private Integer sort;
}
